home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
OLECTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
18KB
|
440 lines
//----------------------------------------------------------------------------
// OleCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: OleCtrls.pas
//----------------------------------------------------------------------------
#ifndef OleCtrlsHPP
#define OleCtrlsHPP
//----------------------------------------------------------------------------
#include <OleAuto.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <OleCtl.hpp>
#include <OLE2.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Olectrls
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TOleClientSite;
class __declspec(delphiclass) TOleControl;
struct TControlData;
typedef TControlData *PControlData;
class __declspec(delphiclass) TOleControlSite;
class __declspec(pascalimplementation) TOleControlSite : public Olectl::IOleControlSite
{
typedef Olectl::IOleControlSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleControlSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall OnControlInfoChanged(void);
virtual long __stdcall LockInPlaceActive(DWord fLock);
virtual long __stdcall GetExtendedControl(Ole2::IDispatch* &disp);
virtual long __stdcall TransformCoords(POINT &ptlHimetric, POINTF &ptfContainer, long flags);
virtual long __stdcall TranslateAccelerator(Windows::PMsg msg, long grfModifiers);
virtual long __stdcall OnFocus(DWord fGotFocus);
virtual long __stdcall ShowPropertyFrame(void);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleControlSite(void) { }
};
class __declspec(delphiclass) TOleInPlaceSite;
class __declspec(pascalimplementation) TOleInPlaceSite : public Ole2::IOleInPlaceSite
{
typedef Ole2::IOleInPlaceSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleInPlaceSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetWindow(HWND &wnd);
virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode);
virtual long __stdcall CanInPlaceActivate(void);
virtual long __stdcall OnInPlaceActivate(void);
virtual long __stdcall OnUIActivate(void);
virtual long __stdcall GetWindowContext(Ole2::IOleInPlaceFrame* &frame, Ole2::IOleInPlaceUIWindow*
&doc, Windows::TRect &rcPosRect, Windows::TRect &rcClipRect, OLEINPLACEFRAMEINFO &frameInfo);
virtual long __stdcall Scroll(const POINT &scrollExtent);
virtual long __stdcall OnUIDeactivate(DWord fUndoable);
virtual long __stdcall OnInPlaceDeactivate(void);
virtual long __stdcall DiscardUndoState(void);
virtual long __stdcall DeactivateAndUndo(void);
virtual long __stdcall OnPosRectChange(const Windows::TRect &rcPosRect);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleInPlaceSite(void) { }
};
class __declspec(delphiclass) TOleInPlaceFrame;
class __declspec(pascalimplementation) TOleInPlaceFrame : public Ole2::IOleInPlaceFrame
{
typedef Ole2::IOleInPlaceFrame inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleInPlaceFrame(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetWindow(HWND &wnd);
virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode);
virtual long __stdcall GetBorder(Windows::TRect &rectBorder);
virtual long __stdcall RequestBorderSpace(const Windows::TRect &borderwidths);
virtual long __stdcall SetBorderSpace(Windows::PRect pborderwidths);
virtual long __stdcall SetActiveObject(Ole2::IOleInPlaceActiveObject* activeObject, wchar_t * pszObjName
);
virtual long __stdcall InsertMenus(HMENU hmenuShared, OLEMENUGROUPWIDTHS &menuWidths);
virtual long __stdcall SetMenu(HMENU hmenuShared, HMENU holemenu, HWND hwndActiveObject);
virtual long __stdcall RemoveMenus(HMENU hmenuShared);
virtual long __stdcall SetStatusText(wchar_t * pszStatusText);
virtual long __stdcall EnableModeless(DWord fEnable);
virtual long __stdcall TranslateAccelerator(MSG &msg, Word wID);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleInPlaceFrame(void) { }
};
class __declspec(delphiclass) TAmbientDispatch;
class __declspec(pascalimplementation) TAmbientDispatch : public Ole2::IDispatch
{
typedef Ole2::IDispatch inherited;
private:
TOleControl* FControl;
public:
__fastcall TAmbientDispatch(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetTypeInfoCount(int &ctinfo);
virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long
lcid, Ole2::PDispIDList rgdispid);
virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
&dispParams, System::PVariant varResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
public:
/* TObject.Destroy */ __fastcall virtual ~TAmbientDispatch(void) { }
};
class __declspec(delphiclass) TEventDispatch;
class __declspec(pascalimplementation) TEventDispatch : public Ole2::IDispatch
{
typedef Ole2::IDispatch inherited;
private:
TOleControl* FControl;
public:
__fastcall TEventDispatch(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetTypeInfoCount(int &ctinfo);
virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long
lcid, Ole2::PDispIDList rgdispid);
virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
&dispParams, System::PVariant varResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
public:
/* TObject.Destroy */ __fastcall virtual ~TEventDispatch(void) { }
};
class __declspec(delphiclass) TPropertyNotifySink;
class __declspec(pascalimplementation) TPropertyNotifySink : public Olectl::IPropertyNotifySink
{
typedef Olectl::IPropertyNotifySink inherited;
private:
TOleControl* FControl;
public:
__fastcall TPropertyNotifySink(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall OnChanged(long dispid);
virtual long __stdcall OnRequestEdit(long dispid);
public:
/* TObject.Destroy */ __fastcall virtual ~TPropertyNotifySink(void) { }
};
class __declspec(delphiclass) TSimpleFrameSite;
class __declspec(pascalimplementation) TSimpleFrameSite : public Olectl::ISimpleFrameSite
{
typedef Olectl::ISimpleFrameSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TSimpleFrameSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall PreMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long &Cookie);
virtual long __stdcall PostMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long Cookie);
public:
/* TObject.Destroy */ __fastcall virtual ~TSimpleFrameSite(void) { }
};
typedef short TOleEnum;
class __declspec(delphiclass) TEnumPropDesc;
class __declspec(pascalimplementation) TOleControl : public Controls::T